package com.suliao.home.serviceImpl.industry;

import com.suliao.home.entity.industry.CompanyMainDO;
import com.suliao.home.mapper.industry.CompanyMainMapper;
import com.suliao.home.service.industry.CompanyMainService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.apache.dubbo.config.annotation.Service;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;

/**
 * @author： M1nG-CodeGenerator
 * @since： 2020-12-14 16:10:11
 * @description： 企业主要信息表 服务实现类
 * @version： 1.0
 */
@Service
public class CompanyMainServiceImpl extends ServiceImpl<CompanyMainMapper, CompanyMainDO> implements CompanyMainService {

    @Autowired
    private CompanyMainMapper companyMainMapper;

    @Override
    public List<CompanyMainDO> listCopyName(CompanyMainDO companyMainDO) {
        return companyMainMapper.listCopyName(companyMainDO);
    }

    /**
     * 通过公司id去获取公司信息
     * @param companyId
     * @return
     */
    @Override
    public CompanyMainDO getCompanyById(Integer companyId) {
        return companyMainMapper.getCompanyById(companyId);
    }
}
